|
|
'T was on Fri, 5 Mar 1999 12:59:14 +0100,
that Rudy Velthuis wrote:
> What makes you assume switch is slow in compiled code (C, Pascal, compiled
> Basic) at all?
This may have to do with the compiler I once wrote for a simple version
of C. I had a hell of a time getting a working executable with a switch
statement, let stand the horror of optimizing the code in such a fashion
that would please my teacher...
In general, the time it takes to read in a jump table is far greater than
just using the jump system that gets generated by an if-clause.
Phoenix
--
eag### [at] telekabelnl http://users.telekabel.nl/eagle
------------------------------------------------------------------------
The POV-Ray VFAQ: http://iki.fi/warp/povVFAQ.html
Post a reply to this message
|
|